package com.sandking.builder.start;

import com.sandking.builder.pojo.DataSourceConfig;

public class Test {
	public static void main(String[] args) throws Exception {
		// 得到数据源
		DataSourceConfig cfg = new DataSourceConfig("com.mysql.jdbc.Driver",
				"jdbc:mysql://127.0.0.1:3306/myg4", "root", "admin",
				DataSourceConfig.MYSQL);
		// 实例化
		// db SqlMapUtil所在包名称
		// "db.pojo", "db.dao", "db.imp", "db.ext","db.xml" 生成代码到那个包中(包先要预先创建)
		// db/xml sqlmap的URL地址
		// "com/sandking/builder/template/ 模板地址
		// cfg 数据原
		Start start = new Start("db", "db.pojo", "db.dao", "db.imp", "db.ext",
				"db.xml", "db/xml", "com/sandking/builder/template/", cfg);
		// 开始生成
		start.pay(true, true, true, true, true);
	}
}
